﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace Brain.Logic2D.PathFinding.Tiled
{
    public class Node
    {
        /// <summary>
        /// Rectangle of the Area of this Node
        /// </summary>
        public Rectangle Rectangle;

        /// <summary>
        /// If this block can't be passed through
        /// </summary>
        public bool Blocked;

        /// <summary>
        /// The X index of this node
        /// </summary>
        public ushort X;

        /// <summary>
        /// The Y index of this node
        /// </summary>
        public ushort Y;

        public Node LeftNode;
        public Node UpNode;
        public Node RightNode;
        public Node DownNode;

        public override string ToString()
        {
            return (Blocked ? "BLOCKED" : "PASSABLE") + " X:" + X + " Y:" + Y;
        }
    }
}
